package com.inews;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

	private Button phoneButton;
	
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        //电话拨号器
        phoneButton = (Button) this.findViewById(R.id.phone);
        phoneButton.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent phoneIntent = new Intent(MainActivity.this, PhoneActivity.class);
				startActivity(phoneIntent);
			}
		});
        
        
    }

}
